import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Question from '@/components/Question'
import Rule from '@/components/Rule'
import Result from '@/components/Result'

Vue.use(Router)

export default new Router({
  // mode:'history',
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
    	path: '/question',
    	name: 'Question',
    	component: Question
    },
    {
    	path: '/rule',
    	name: 'Rule',
    	component: Rule
    },
    {
    	path: '/result/:correctNum',
    	name: 'Result',
    	component: Result
    }

  ]
})
